<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";

request.setAttribute("basePath", basePath);
out.clear();
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="${basePath }">

<title>贝咪 | 运营商流量包折扣编辑</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<c:import url="../head.jsp" />
</head>

<body>
<div id="wrapper">
  <c:import url="../left.jsp" />
  <!-- --------------------------------------------- -->
	<div id="page-wrapper" class="gray-bg dashbard-1">
		<div class="row border-bottom">
			<c:import url="../topnav.jsp" />
		</div>

		<div class="row wrapper border-bottom white-bg page-heading">
          <div class="col-lg-10"><br/>
			  <h3>运营商物理通道设置流量包折扣</h3>
		      <ol class="breadcrumb">
			      <li><a href="${basePath }mainPage">主页</a></li>
				  <li><a>运营商</a></li>
				  <li><a>运营商物理通道</a></li>
				  <li class="active"><strong>编辑流量包折扣-
					    		<span style="color: red">${providerPhysicalChannel.name}</span></strong></li>
			  </ol>
		  </div>
		</div>

		<div class="wrapper wrapper-content animated fadeInRight">
			<div class="ibox-content m-b-sm border-bottom">
				<div class="form-group">
		        	<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">运 营 商</label>
		            <div class="form-group col-sm-11">
		            	<select data-placeholder="请选择..." class="chosen-select" tabindex="2" name="providerId" id="providerId" onchange="showDataPkgDiscount();"></select>
		            </div>
		        </div>
		        <div class="form-group">
		        	<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">流量类型</label>
		            <div class="form-group col-sm-11">
						<input type="hidden" name="providerPhysicalChannelId" id="providerPhysicalChannelId" value="${providerPhysicalChannel.id}" />
						<input type="hidden" name="data_type" id="data_type" value="2" />
		            	<input type="radio" value="2" id="data_type1" name="dataType" class="i-checks" checked > 全国
		            	<input type="radio" value="1" id="data_type2" name="dataType" class="i-checks" > 省内
		            </div>
		        </div>
				<div class="form-group">
		        	<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">流量包范围</label>
		            <div class="form-group col-sm-11" id="providerCodeDiv">
		            </div>
		        </div>
		        <div class="form-group">
		        	<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">
		        		全选/反选
		        	</label>
		            <div class="form-group col-sm-11">
		            	<input id="choose" type="checkbox"  class="i-checks"/>&nbsp;
		            </div>
		        </div>
				<div class="form-group">
		        	<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">
		        		设置选中折扣
		        	</label>
		            <div class="form-group col-sm-11">
		            	<input id="dis" type="number" class="form-control" onchange="updataDiscount()" min="0.001" step="0.001"/>
		            </div>
		        </div>
				<div class="form-group">
					<label class="col-sm-1 control-label" style="padding-left: 0px;padding-right: 0px;">折扣详情</label>
					<div class="col-md-11" id="provinceDataDiscount">
					</div>
		        </div>
		        <div class="form-group">
		            <div class="col-sm-12 col-sm-offset-5">
		            	<button type="button" class="btn btn-primary btn-outline" 
		            		onclick="javascript:location.href='${basePath }providerDataDiscountListPage/${providerPhysicalChannel.id}'">返回</button>
		            	<button type="button" class="btn btn-primary" onclick="saveUpdata()">保存</button> 
		            </div>
		        </div>
		        <div class="row"></div>
			</div>
			<!-- end div ibox content -->
		</div>
		<!-- end div row -->
		<c:import url="../copyright.jsp" />
	</div>
</div>
  <c:import url="../foot.jsp" />
  <script src="${basePath }js/lib/jquery.form.js"></script>
  <script src="${basePath }js/project/mp/providerDataDiscountEdit.js"></script>

</body>
</html>